package cn.touna.jss.modules.third.zhima.entity;


import cn.touna.jss.modules.third.zhima.enums.ZhimaResultEnum;

/**
 * <P>芝麻授权查询DTO</P>
 *
 * @author tianhuaxing 2016年2月22日 上午10:22:02
 * @since 1.0.0.000
 */
public class AccreditQueryResultDto extends ZhimaBaseResultDto {

    private static final long serialVersionUID = 1L;

    private AccreditQueryData retData;

    public AccreditQueryData getRetData() {
        return retData;
    }

    public void setRetData(AccreditQueryData retData) {
        this.retData = retData;
    }

    public AccreditQueryResultDto server_error(AccreditQueryResultDto response, String sid) {
        response.setSuccess(false + "");
        response.setRetCode(ZhimaResultEnum.AUTH_ERROR.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_ERROR.getRetMessage());
        AccreditQueryData data = new AccreditQueryData();
        data.setSid(sid);
        response.setRetData(data);
        return response;
    }

    public AccreditQueryResultDto server_accredi_success(AccreditQueryResultDto response) {
        response.setRetCode(ZhimaResultEnum.AUTH_ACCREDI_SUCCESS.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_ACCREDI_SUCCESS.getRetMessage());
        return response;
    }

    public AccreditQueryResultDto server_param_limit(AccreditQueryResultDto response, String sid) {
        response.setSuccess(false + "");
        response.setRetCode(ZhimaResultEnum.AUTH_PARAM_LIMIT.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_PARAM_LIMIT.getRetMessage());
        AccreditQueryData data = new AccreditQueryData();
        data.setSid(sid);
        response.setRetData(data);
        return response;
    }


    public AccreditQueryResultDto server_accredi_fail(AccreditQueryResultDto response, String sid) {
        response.setSuccess(false + "");
        response.setRetCode(ZhimaResultEnum.AUTH_ACCREDI_NO.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_ACCREDI_NO.getRetMessage());
        AccreditQueryData data = new AccreditQueryData();
        data.setSid(sid);
        response.setRetData(data);
        return response;
    }

}
